import React from 'react'
import store from './store'
import {addNum, decNum} from './store/slice/count'
export default function App() {
    let {num} = store.getState().count
    return (
        <div>
            <h3>App</h3>
            <p>num : {num}</p>
            <p><button onClick={() => {
                store.dispatch(addNum(10))
            }}>num++</button></p>
        </div>
    )
}
